package com.nacos.nacosproducer;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author wenl
 * @version V2.0
 * @project 自己的框架
 * @package com.nacos.nacosproducer
 * @date 2020/4/2
 * @describe
 */
@RestController
public class EchoController {

    @Value("${server.port}")
    private String port;

    @GetMapping(value = "/echo/{name}")
    public String echo(@PathVariable String name){
        return "HI, this is "+name+ port +"!...";
    }

}
